package com.wgc.user;

import com.wgc.filter.FeignInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan(basePackages = "com.wgc.user.mapper")
public class userMain {
    public static void main(String[] args) {
        SpringApplication.run(userMain.class, args);
    }
    @Bean
    public FeignInterceptor feignInterceptor(){  return new FeignInterceptor();}
}
